// component/commonItem/commonItem.js

// const { get } = require("../../service/base_service");

const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data: {
      type: Object,
      value: {}
    },
    isBottomBtn: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    tempImgUrl: "https://th.bing.com/th/id/Rb356343c3dddeda71383acde8c7e2e15?rik=KWH7SWD8mDBeng&riu=http%3a%2f%2fpic28.nipic.com%2f20130410%2f10665799_092931612187_2.jpg&ehk=Umt%2f9s6DIMrYyh%2fsssJfmGbvkxxsySaey6N5ZFi%2bwxc%3d&risl=&pid=ImgRaw",

  },

  /**
   * 组件的方法列表
   */
  methods: {
    commonItemClick(e) {
      // this.triggerEvent("itemClick", { data: this.properties.data });
      let number = this.properties.data.id;

      // 去详情页面:
      wx.navigateTo({
        url: "/shopMallPackage/pages/newStoreDetail/newStoreDetail?houseNumber=" + number,
      })
      

    },
    
  }
})
